package sctu.edu.java.year2016.team06.liuchuanjiao.day20160612.chapter15_1;

/**
 * Created by LCJ on 2016/6/17.
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        super.run();
        int i=0;
        for(i=0;i<=100;i++){
            System.out.println("You will be successful");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args) {
        MyThread myThread=new MyThread();
        myThread.run();
    }
}
